package org.jmhome.blog.model;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;

@Entity
@NamedQueries({
	@NamedQuery(name = "org.jmhome.blog.model.BoardRecommandUser", query = "from BoardRecommandUser as boardRecommandUser where recommand_board = :recommand_board and recommandUserEmail = :recommandUserEmail") })

public class BoardRecommandUser {

	@Id
	@GeneratedValue
	private Integer recommandSeq;

	private String recommandUserEmail;

	@ManyToOne(cascade = { CascadeType.ALL })
	@JoinColumn(name = "recommand_board")
	private Board recommandBoard;

	public BoardRecommandUser() {
		super();
	}

	/**
	 * @return the recommandSeq
	 */
	public Integer getRecommandSeq() {
		return recommandSeq;
	}

	/**
	 * @param recommandSeq
	 *            the recommandSeq to set
	 */
	public void setRecommandSeq(Integer recommandSeq) {
		this.recommandSeq = recommandSeq;
	}

	/**
	 * @return the recommandUserEmail
	 */
	public String getRecommandUserEmail() {
		return recommandUserEmail;
	}

	/**
	 * @param recommandUserEmail
	 *            the recommandUserEmail to set
	 */
	public void setRecommandUserEmail(String recommandUserEmail) {
		this.recommandUserEmail = recommandUserEmail;
	}

	/**
	 * @return the recommandBoard
	 */
	public Board getRecommandBoard() {
		return recommandBoard;
	}

	/**
	 * @param recommandBoard
	 *            the recommandBoard to set
	 */
	public void setRecommandBoard(Board recommandBoard) {
		this.recommandBoard = recommandBoard;
	}

}
